projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7a96f
)
Fixed crash in mingw build when writing to Cetus format from a GPX file that containe...
author
parkrrrr
<parkrrrr>
Wed, 15 Oct 2003 16:13:10 +0000
(16:13 +0000)
committer
parkrrrr
<parkrrrr>
Wed, 15 Oct 2003 16:13:10 +0000
(16:13 +0000)
cetus.c
patch
|
blob
|
history
diff --git
a/cetus.c
b/cetus.c
index ac48612bad77da3976cf878c9e908ea6f00a24ee..4368bb73e15e108791bf4df3c78c2d153d7d6ae2 100644
(file)
--- a/
cetus.c
+++ b/
cetus.c
@@
-205,8
+205,7
@@
cetus_writewpt(waypoint *wpt)
rec = xcalloc(sizeof(*rec)+1018,1);
- if (wpt->creation_time) {
- tm = gmtime(&wpt->creation_time);
+ if (wpt->creation_time && (NULL != (tm = gmtime(&wpt->creation_time)))){
rec->min = tm->tm_min;
rec->hour = tm->tm_hour;
rec->sec = tm->tm_sec;